package pl.ydp.components.mathcell.mathcell.utils
{
	import flash.geom.Point;

	public class BeforeDrawingEnabledData
	{
		private var pointsBeforeDrawingEnabled:Array;
		
		public function BeforeDrawingEnabledData()
		{
			pointsBeforeDrawingEnabled = [];
		}
		
		public function pushPoint(pt:Point):void{
			pointsBeforeDrawingEnabled.push(pt);
		}
		
		public function hasMorePoints():Boolean{
			return pointsBeforeDrawingEnabled.length > 0;
		}
		
		public function shiftPoint():Point{
			return pointsBeforeDrawingEnabled.shift();
		}
	}
}